<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your module. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
//登录、注销
Route::group(['prefix'=>'admin'],function (){
    Route::get('login','LoginController@showLoginForm')->name('admin.loginForm');
    Route::post('login','LoginController@login')->name('admin.login');
    Route::get('logout','LoginController@logout')->name('admin.logout');

});
Route::group(['prefix'=>'admin','middleware' => 'auth.admin:admin'],function (){
    //后台布局
    Route::get('/','IndexController@layout')->name('admin.layout');
    //后台首页
    Route::get('/index','IndexController@index')->name('admin.index');

    //公共接口
    Route::post('editorUpload','BaseController@editorUpload')->name('admin.editorUpload');//富文本文件上传
    Route::get('icons','BaseController@icons')->name('admin.icons');//图标
    Route::get('userList','BaseController@userList')->name('admin.userList');//用户列表
});



